import service from '@/utils/request';
//1、设备列表
    //新增
export function device_add(payload = {}) {
    return service.post('/device/add', payload)
}
    //删除
export function device_deleteById(payload = {}) {
    return service.delete('/device/deleteById', {params:payload})
}
    //批量删除
export function device_deletefew(payload = {}) {
    return service.delete('/device/deletefew', {params:payload})
}
    //修改
export function device_edit(payload = {}) {
    return service.put('/device/edit', payload)
}
    //单例查询
export function device_queryById(payload = {}) {
    return service.get('/device/queryById', {params:payload})
}   
    //分页查询
export function device_queryByPage(payload = {}) {
    return service.get('/device/queryAll', {params:payload})
}
//2、告警记录
    //新增
export function devicewarn_add(payload = {}) {
    return service.post('/devicewarn/add', payload)
}
    //删除
export function devicewarn_deleteById(payload = {}) {
    return service.delete('/devicewarn/deleteById?id', payload)
}
    //批量删除
export function devicewarn_deletefew(payload = {}) {
    return service.delete('/devicewarn/deletefew', payload)
}
    //修改
export function devicewarn_edit(payload = {}) {
    return service.put('/devicewarn/edit', payload)
}
    //单例查询
export function devicewarn_queryById(payload = {}) {
    return service.get('/devicewarn/queryById/{id}', {params:payload})
}   
    //分页查询
export function devicewarn_queryByPage(payload = {}) {
    return service.get('/devicewarn/queryAll', {params:payload})
}
//3、运维记录
    //新增
export function devicerepair_add(payload = {}) {
    return service.post('/devicerepair/add', payload)
}
    //删除
export function devicerepair_deleteById(payload = {}) {
    return service.delete('/devicerepair/deleteById?id', payload)
}
    //批量删除
export function devicerepair_deletefew(payload = {}) {
    return service.delete('/devicerepair/deletefew', payload)
}
    //修改
export function devicerepair_edit(payload = {}) {
    return service.put('/devicerepair/edit', payload)
}
    //单例查询
export function devicerepair_queryById(payload = {}) {
    return service.get('/devicerepair/queryById/{id}', {params:payload})
}   
    //分页查询
export function devicerepair_queryByPage(payload = {}) {
    return service.get('/devicerepair/queryAll', {params:payload})
}